home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / makefile.dg < prev    next >
Makefile  |  1992-04-03  |  12KB  |  279 lines

  1. #
  2. # This makefile builds TECOC on a Sun running the SunOS operating system.
  3. # Before running it,  inspect the lines between here and the line containing
  4. # all #'s to select the way you want TECO-C built.
  5.  
  6. # If you want to compile with built-in debugging support,  uncomment the
  7. # following line.  When debugging is compiled in,  the control-P command
  8. # can be used to turn on function tracing or get views of internal data
  9. # structures (see the DbgDsp function in tecoc.c). Compiling in this support
  10. # makes TECO-C larger and a little slower,  so you should only use this
  11. # when you're debugging TECO-C.
  12.  
  13. #DEBG = -DDEBUGGING
  14.  
  15. # If you're debugging TECO-C,  use this option to compile in a consistency
  16. # checking function called after each command executes.  The function checks
  17. # the sanity of TECO-C's internal variables.  This obviously slows things
  18. # down a little.
  19.  
  20. #CCHEK = -DCONSISTENCY_CHECKING
  21.  
  22. # Include files for SunOS 4.0 are different than for 4.1 (4.1's are closer
  23. # to the ANSI Standard).  Define OSVERS as -DSUNOS4_0 if you're running
  24. # 4.0,  so functions get properly declared (and to keep gcc from bitching).
  25.  
  26. #OSVERS = -DSUNOS4_0
  27.  
  28. # To choose the compiler you want to use,  uncomment one of the following
  29. # sets of lines (between here and the line containing all "#" characters).
  30.  
  31. # If you want to compile with video support,  uncomment the following lines,
  32. # which use the System V compiler and compile/link using System V include
  33. # files and libraries.  I've found that I get "undefined symbol" errors if I
  34. # don't unsetenv the LD_LIBRARY_PATH environment variable before linking
  35. # with this set of lines.
  36. #
  37. # Note that compiling in video support is a mixed blessing.  If you use
  38. # TECO-C exclusively in video mode,  there are no problems.  If you turn
  39. # video off (using a 0,7:w command) you'll notice that typeout is very slow.
  40. # This is an artifact of curses.  To get fast typeout,  build TECO-C without
  41. # video (use one of the other sets of lines below).
  42.  
  43. CC=gcc
  44. CFLAGS=-O2 -DDGUX
  45. TERMOBJS=-lcurses
  46. #CC = /usr/5bin/cc
  47. #CFLAGS = ${OSVERS}${DEBG}${CCHEK} -DCURSES -O -pipe
  48. #TERMOBJS = -lcurses
  49.  
  50. # If you want to the standard compiler,  uncomment the following line.
  51.  
  52. #CFLAGS = $(OSVERS) ${DEBG} ${CCHEK} -O -pipe
  53. #TERMOBJS = -ltermcap
  54.  
  55. # If you want to use gcc,  uncomment the following lines,  which override the
  56. # COMPILE.c macro so it doesn't stick in the -target option, which gcc
  57. # doesn't understand.
  58.  
  59. #CC= gcc
  60. #CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -Wall -Wshadow -Wpointer-arith -Wcast-qual
  61. #TERMOBJS = -ltermcap
  62. #COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c -g
  63.  
  64. #############################################################################
  65.  
  66. CFILES=    baksrc.c bldstr.c clenup.c cmatch.c docjr.c doeves.c doflag.c \
  67.     echoit.c err.c exea.c exeats.c exeb.c exebar.c exebsl.c exec.c \
  68.     execcc.c execln.c execom.c execrt.c execst.c execta.c exectc.c \
  69.     exectd.c execte.c execti.c exectl.c exectn.c execto.c exectp.c \
  70.     exectq.c exectr.c exects.c exectt.c exectu.c exectv.c exectw.c \
  71.     exectx.c execty.c exectz.c exed.c exedgt.c exedot.c exedqu.c \
  72.     exee.c exeequ.c exeesc.c exeexc.c exeey.c exef.c exefb.c exeg.c \
  73.     exegtr.c exeh.c exei.c exeill.c exej.c exek.c exel.c exelbr.c \
  74.     exelst.c exem.c exen.c exenul.c exenyi.c exeo.c exeopr.c exep.c \
  75.     exeprc.c exepw.c exeq.c exeqes.c exer.c exerbr.c exertp.c exes.c \
  76.     exescl.c exet.c exetil.c exeu.c exeund.c exeusc.c exev.c exew.c \
  77.     exex.c exey.c exez.c findes.c findqr.c flowec.c flowee.c flowel.c \
  78.     getara.c getnma.c inccbp.c init.c insstr.c isradx.c ln2chr.c \
  79.     makdbf.c makrom.c popmac.c pshmac.c pushex.c rdline.c rdpage.c \
  80.     readcs.c replac.c search.c singlp.c skpcmd.c srclop.c sserch.c \
  81.     tabort.c typbuf.c typest.c uminus.c wrpage.c zfrsrc.c zunix.c
  82.  
  83. OBJECTS= $(CFILES:.c=.o)
  84.  
  85. tecoc: tecoc.o ${OBJECTS}
  86.     ${LINK.c} -s -o $@ tecoc.o ${OBJECTS} ${TERMOBJS}
  87.  
  88. tecoc.o: tecoc.c zport.h tecoc.h deferr.h dchars.h chmacs.h
  89.  
  90. clpars.h: genclp clpars.tec
  91.     genclp
  92.  
  93. genclp: genclp.o
  94.     ${LINK.c} -o $@ genclp.o
  95.  
  96. genclp.o: genclp.c
  97.  
  98. clean:
  99.     @for i in makedep? ${OBJECTS} ; do \
  100.         if [ -f $$i ] ; then rm $$i ; fi ; \
  101.     done
  102.     rm -f tecoc tecoc.o core
  103.  
  104. tags:
  105.     etags *.c *.h
  106.  
  107. lint:
  108. # b = report unreachable break statements
  109. # c = complain about casts with questionable portability
  110. # h = apply heuristic tests
  111. # x = report unused externs
  112.     lint -bchx -DSUNOS4_0 tecoc.c ${CFILES}
  113.  
  114.  
  115. #
  116. #  Invoking this target (with "make depend") causes a new version of this
  117. #  file to be created.  This current version will be saved in a file named
  118. #  "makefile.bak".  In the new file, the lines following the special "DO NOT
  119. #  DELETE" line will be replaced with a new set of dependency rules.
  120. #
  121.  
  122. depend: makedep
  123.     @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >makedep0
  124.     @echo '$$r makedep5' >>makedep0
  125.     @echo 'w' >>makedep0
  126.     @cp makefile makefile.bak
  127.     @ed - makefile < makedep0
  128.     @rm makedep?
  129.     @echo "new version of makefile generated, old version in makefile.bak"
  130.  
  131. makedep: FRC
  132.     @cat /dev/null >makedep5
  133.     @echo "generating include file dependency list..."
  134.     @-(for i in ${CFILES} ; do \
  135.         ${CPP} -M $$i >> makedep1; done) 2>makedepe
  136.     @echo "generating new version of makefile..."
  137.     @sed -e 's|: ./|: |' makedep1 > makedep2
  138.     @awk ' { if ($$1 != prev)                              \
  139.             { print rec; rec = $$0; prev = $$1; }  \
  140.            else                                        \
  141.             { if (length(rec $$2) > 70)            \
  142.                 { print rec; rec = $$0; }      \
  143.               else                                 \
  144.                 rec = rec " " $$2              \
  145.             }                                      \
  146.            }                                               \
  147.            END { print rec }                               \
  148.          '                                                 \
  149.          makedep2 >makedep3
  150.     @awk '/:/ {printf "%s\n", $$0}' \
  151.          makedep3 >makedep4
  152.     @sed -e 's|:|:|' makedep4 > makedep5
  153.     @cat makedepe
  154.     @(if [ -s makedepe ]; then false; fi)
  155. FRC:
  156.  
  157.  
  158. # DO NOT DELETE THIS LINE -- make depend uses it
  159. baksrc.o: baksrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  160. bldstr.o: bldstr.c zport.h tecoc.h defext.h deferr.h dchars.h chmacs.h
  161. clenup.o: clenup.c zport.h tecoc.h defext.h
  162. cmatch.o: cmatch.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  163. docjr.o: docjr.c zport.h tecoc.h defext.h deferr.h
  164. doeves.o: doeves.c zport.h tecoc.h defext.h dchars.h
  165. doflag.o: doflag.c zport.h tecoc.h defext.h
  166. echoit.o: echoit.c zport.h tecoc.h defext.h dchars.h
  167. err.o: err.c zport.h tecoc.h defext.h deferr.h dchars.h
  168. exea.o: exea.c zport.h tecoc.h defext.h deferr.h
  169. exeats.o: exeats.c zport.h tecoc.h defext.h
  170. exeb.o: exeb.c zport.h tecoc.h defext.h
  171. exebar.o: exebar.c zport.h tecoc.h defext.h deferr.h
  172. exebsl.o: exebsl.c zport.h tecoc.h defext.h chmacs.h
  173. exec.o: exec.c zport.h tecoc.h defext.h
  174. execcc.o: execcc.c zport.h tecoc.h defext.h deferr.h
  175. execln.o: execln.c zport.h tecoc.h defext.h
  176. execom.o: execom.c zport.h tecoc.h defext.h deferr.h
  177. execrt.o: execrt.c zport.h tecoc.h defext.h chmacs.h deferr.h
  178. execst.o: execst.c zport.h tecoc.h defext.h deferr.h
  179. execta.o: execta.c zport.h tecoc.h defext.h dchars.h
  180. exectc.o: exectc.c zport.h tecoc.h defext.h dchars.h
  181. exectd.o: exectd.c zport.h tecoc.h defext.h
  182. execte.o: execte.c zport.h tecoc.h defext.h
  183. execti.o: execti.c zport.h tecoc.h defext.h dchars.h
  184. exectl.o: exectl.c zport.h tecoc.h defext.h dchars.h
  185. exectn.o: exectn.c zport.h tecoc.h defext.h
  186. execto.o: execto.c zport.h tecoc.h defext.h
  187. exectp.o: exectp.c zport.h tecoc.h defext.h
  188. exectq.o: exectq.c zport.h tecoc.h defext.h
  189. exectr.o: exectr.c zport.h tecoc.h defext.h deferr.h
  190. exects.o: exects.c zport.h tecoc.h defext.h
  191. exectt.o: exectt.c zport.h tecoc.h defext.h deferr.h
  192. exectu.o: exectu.c zport.h tecoc.h defext.h deferr.h dchars.h
  193. exectv.o: exectv.c zport.h tecoc.h defext.h deferr.h
  194. exectw.o: exectw.c zport.h tecoc.h defext.h deferr.h
  195. exectx.o: exectx.c zport.h tecoc.h defext.h
  196. execty.o: execty.c zport.h tecoc.h defext.h
  197. exectz.o: exectz.c zport.h tecoc.h defext.h
  198. exed.o: exed.c zport.h tecoc.h defext.h deferr.h
  199. exedgt.o: exedgt.c zport.h tecoc.h defext.h deferr.h chmacs.h
  200. exedot.o: exedot.c zport.h tecoc.h defext.h
  201. exedqu.o: exedqu.c zport.h tecoc.h defext.h deferr.h chmacs.h
  202. exee.o: exee.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  203. exeequ.o: exeequ.c zport.h tecoc.h defext.h dchars.h deferr.h
  204. exeesc.o: exeesc.c zport.h tecoc.h defext.h dchars.h
  205. exeexc.o: exeexc.c zport.h tecoc.h defext.h
  206. exeey.o: exeey.c zport.h tecoc.h defext.h
  207. exef.o: exef.c zport.h tecoc.h defext.h chmacs.h deferr.h
  208. exefb.o: exefb.c zport.h tecoc.h defext.h deferr.h
  209. exeg.o: exeg.c zport.h tecoc.h defext.h deferr.h
  210. exegtr.o: exegtr.c zport.h tecoc.h defext.h deferr.h
  211. exeh.o: exeh.c zport.h tecoc.h defext.h
  212. exei.o: exei.c zport.h tecoc.h defext.h dchars.h deferr.h
  213. exeill.o: exeill.c zport.h tecoc.h defext.h deferr.h
  214. exej.o: exej.c zport.h tecoc.h defext.h
  215. exek.o: exek.c zport.h tecoc.h defext.h
  216. exel.o: exel.c zport.h tecoc.h defext.h
  217. exelbr.o: exelbr.c zport.h tecoc.h defext.h deferr.h
  218. exelst.o: exelst.c zport.h tecoc.h defext.h deferr.h
  219. exem.o: exem.c zport.h tecoc.h defext.h deferr.h
  220. exen.o: exen.c zport.h tecoc.h defext.h deferr.h
  221. exenul.o: exenul.c zport.h tecoc.h defext.h
  222. exenyi.o: exenyi.c zport.h tecoc.h defext.h deferr.h
  223. exeo.o: exeo.c zport.h tecoc.h defext.h dchars.h deferr.h
  224. exeopr.o: exeopr.c zport.h tecoc.h defext.h
  225. exep.o: exep.c zport.h tecoc.h defext.h deferr.h
  226. exeprc.o: exeprc.c zport.h tecoc.h defext.h deferr.h
  227. exepw.o: exepw.c zport.h tecoc.h defext.h
  228. exeq.o: exeq.c zport.h tecoc.h defext.h deferr.h
  229. exeqes.o: exeqes.c zport.h tecoc.h defext.h
  230. exer.o: exer.c zport.h tecoc.h defext.h
  231. exerbr.o: exerbr.c zport.h tecoc.h defext.h deferr.h
  232. exertp.o: exertp.c zport.h tecoc.h defext.h deferr.h
  233. exes.o: exes.c zport.h tecoc.h defext.h dchars.h deferr.h
  234. exescl.o: exescl.c zport.h tecoc.h defext.h deferr.h
  235. exet.o: exet.c zport.h tecoc.h defext.h dchars.h
  236. exeu.o: exeu.c zport.h tecoc.h defext.h deferr.h
  237. exeund.o: exeund.c zport.h tecoc.h defext.h deferr.h
  238. exeusc.o: exeusc.c zport.h tecoc.h defext.h dchars.h
  239. exev.o: exev.c zport.h tecoc.h defext.h
  240. exew.o: exew.c zport.h tecoc.h defext.h deferr.h
  241. exex.o: exex.c zport.h tecoc.h defext.h deferr.h
  242. exey.o: exey.c zport.h tecoc.h defext.h deferr.h
  243. exez.o: exez.c zport.h tecoc.h defext.h
  244. findes.o: findes.c zport.h tecoc.h defext.h deferr.h
  245. findqr.o: findqr.c zport.h tecoc.h defext.h deferr.h chmacs.h
  246. flowec.o: flowec.c zport.h tecoc.h defext.h deferr.h
  247. flowee.o: flowee.c zport.h tecoc.h defext.h deferr.h
  248. flowel.o: flowel.c zport.h tecoc.h defext.h deferr.h
  249. getara.o: getara.c zport.h tecoc.h defext.h deferr.h
  250. getnma.o: getnma.c zport.h tecoc.h defext.h deferr.h
  251. inccbp.o: inccbp.c zport.h tecoc.h defext.h deferr.h
  252. init.o: init.c zport.h tecoc.h defext.h deferr.h
  253. insstr.o: insstr.c zport.h tecoc.h defext.h deferr.h
  254. isradx.o: isradx.c zport.h tecoc.h defext.h chmacs.h
  255. ln2chr.o: ln2chr.c zport.h tecoc.h defext.h dchars.h chmacs.h
  256. makdbf.o: makdbf.c zport.h tecoc.h defext.h
  257. makrom.o: makrom.c zport.h tecoc.h defext.h deferr.h
  258. popmac.o: popmac.c zport.h tecoc.h defext.h
  259. pshmac.o: pshmac.c zport.h tecoc.h defext.h deferr.h
  260. pushex.o: pushex.c zport.h tecoc.h defext.h dchars.h deferr.h
  261. rdline.o: rdline.c zport.h tecoc.h defext.h deferr.h dchars.h
  262. rdpage.o: rdpage.c zport.h tecoc.h defext.h deferr.h
  263. readcs.o: readcs.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  264. readcs.o: dscren.h
  265. replac.o: replac.c zport.h tecoc.h defext.h dchars.h
  266. search.o: search.c zport.h tecoc.h defext.h deferr.h dchars.h
  267. singlp.o: singlp.c zport.h tecoc.h defext.h dchars.h
  268. skpcmd.o: skpcmd.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  269. srclop.o: srclop.c zport.h tecoc.h defext.h deferr.h
  270. sserch.o: sserch.c zport.h tecoc.h defext.h
  271. tabort.o: tabort.c zport.h tecoc.h
  272. typbuf.o: typbuf.c zport.h tecoc.h defext.h dchars.h chmacs.h
  273. typest.o: typest.c zport.h tecoc.h defext.h dchars.h
  274. uminus.o: uminus.c zport.h tecoc.h defext.h
  275. wrpage.o: wrpage.c zport.h tecoc.h defext.h dchars.h deferr.h
  276. zfrsrc.o: zfrsrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  277. zunix.o: zunix.c tecoc.h clpars.h dchars.h deferr.h
  278. zunix.o: defext.h dscren.h vrbmsg.h
  279.